package testTimeStamp;

import java.text.Format;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.TimeZone;

import org.codehaus.xfire.util.date.XsDateTimeFormat;
import org.junit.Test;

public class TestTimeStamp {

	
	@Test
	public void testTimeStamp(){
//	long beginSetMap = System.currentTimeMillis();
//	System.out.println(beginSetMap);
		
		List<String> l = new ArrayList<String>();
		
		for(int i = 0;i <10; i++){
			l.add(i+"");
		}
		
		for(String s:l){
			s = "1";
		}
		
		for(String a:l){
			System.out.println(a);
		}
	}
	
	@Test
	public void testTimeStamp2() throws ParseException{
		
		String  messageCreatedTime = "2004-01-14T03:12:07+00:00";
		Format formatter = new XsDateTimeFormat();
	     Calendar createdTime = (Calendar)formatter.parseObject(messageCreatedTime);
	     System.out.println(createdTime);
	}
	
	@Test
	public void testTimeStamp3() {
		
	}
	
	 
}
